const jsSHA = require('jssha');

// jsSHA(哈希算法,输入格式,{参数设置})

const shaObj = new jsSHA('SHA-512', 'TEXT', { encoding: 'UTF8' });

shaObj.updated('UP');
console.log(shaObj);
